package com.train.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.train.common.exception.GlobalException;
import com.train.system.resp.station.StationPageResp;
import com.train.common.resp.PageResp;
import com.train.system.resp.station.StationResp;
import com.train.system.dto.station.StationAddOrEditDTO;
import com.train.system.dto.station.StationPageDTO;
import com.train.system.po.StationPO;

import java.util.List;

/**
* @author baitiaojun
* @description 针对表【station(乘车人)】的数据库操作Service
* @createDate 2025-02-14 19:37:18
*/
public interface StationService extends IService<StationPO> {

    void addOrEditStation(StationAddOrEditDTO stationAddOrEditDTO);

    PageResp<StationPageResp> pageList(StationPageDTO stationPageDTO);

    void remove(Long id) throws GlobalException;

    List<StationResp> allStation();
}
